package org.jeecg.modules.oa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.oa.entity.ButtonConditionNew;
import org.jeecg.modules.oa.mapper.ButtonConditionNewMapper;
import org.jeecg.modules.oa.service.IButtonConditionNewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 按钮条线
 * @Author: jeecg-boot
 * @Date:   2019-12-17
 * @Version: V1.0
 */
@Service
public class ButtonConditionNewServiceImpl extends ServiceImpl<ButtonConditionNewMapper, ButtonConditionNew> implements IButtonConditionNewService {
	
	@Autowired
	private ButtonConditionNewMapper buttonConditionNewMapper;
	
	@Override
	public List<ButtonConditionNew> selectByMainId(String mainId) {
		return buttonConditionNewMapper.selectByMainId(mainId);
	}

	@Override
	public void removeByMainId(String selectButtonId) {
		buttonConditionNewMapper.deleteByMainId(selectButtonId);
	}

}
